<template>
  <div id="App">
    <ul class="layui-nav layui-bg-blue" lay-bar="disabled">
      <li class="layui-nav-item">
        <router-link to="/home">首页</router-link>
      </li>
      <li class="layui-nav-item">
        <router-link to="/login">登录</router-link>
      </li>
      <li class="layui-nav-item">
        <router-link :to="{name:'user',params:{userId:101}}">用户</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<style lang="less">
.router-link-active{
  background-color: #ff3d3d;
}
</style>
<script setup>
</script>